package com.ruoyi.business.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.business.domain.TAuditRecordLog;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.business.domain.TAuditLog;
import com.ruoyi.business.vo.TAuditLogVo;
import com.ruoyi.business.mapper.TAuditLogMapper;
import com.ruoyi.business.service.ITAuditLogService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 审批记录Service业务层处理
 *
 * @author Tellsea
 * @date 2024-01-26
 */
@Service
public class TAuditLogServiceImpl extends ServiceImpl<TAuditLogMapper, TAuditLog> implements ITAuditLogService {

    @Override
    public TableDataInfo<TAuditLogVo> queryList(TAuditLogVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<TAuditLogVo> queryAll(TAuditLogVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public TAuditLogVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }

    @Override
    public List<TAuditRecordLog> getRegisterAuditLogList(Long id) {
        return this.baseMapper.getRegisterAuditLogList(id);
    }

    @Override
    public List<TAuditRecordLog> getGraduationAuditLogList(Long id) {
        return this.baseMapper.getGraduationAuditLogList(id);
    }

    @Override
    public List<TAuditLogVo> listByRegistId(Long id) {
        return this.baseMapper.listByRegistId(id);
    }
}
